home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 006a / nstat11.zip / GOODRUN.DOC < prev    next >
Text File  |  1993-02-07  |  2KB  |  65 lines

  1. Program--Goodrun.exe by Kevin Cummins (C) 1992
  2.  
  3. Do you relay Network Mail? Do you have a bulletin that shows the date/time
  4. of the last 'successful' run for each particular network? Do you think a
  5. run is successful, even if your normal download packet is 300 or 400K+, and
  6. this run was only a few K?
  7.  
  8. I know that run was technically successful if everything functioned
  9. correctly, but as far as the users are concerned---no messages, no
  10. success.......
  11.  
  12. So, I decided to figure a way to separate barely successful from normally
  13. successful runs where the message flow is above a certain level.
  14.  
  15. GOODRUN needs 2 command line parameters. The first is the filename to
  16. perform the size check on, and the second is the file size (in K-bytes)
  17. that you wish to be considered as a 'good' run.
  18.  
  19. What GOODRUN does is very simple. It checks the size of your downloaded
  20. packet, and returns errorlevel 0 if that file is greater than a
  21. pre-specified size. Otherwise, it returns errorlevel 1 if the file is
  22. smaller, or errorlevel 2 for any runtime errors.
  23.  
  24. Below is a section of my batch file that controls my RIME mail run via
  25. Postlink with GOODRUN checking for a nominal filesize of 25K:
  26.  
  27. -----------------
  28. cd\postlink
  29.  
  30. GOODRUN D1390.ZIP 25
  31.   if errorlevel 2 goto error2
  32.   if errorlevel 1 goto error1
  33.   if errorlevel 0 goto error0
  34.  
  35. :error2
  36. rem File Not Found!
  37. goto continue
  38.  
  39. :error1
  40. rem File Size Too Small
  41. goto continue
  42.  
  43. :error0
  44. rem File Size OK, so run POSTLINK/NETBULL
  45. POSTLINK CALLER.CFG /CONTINUE
  46. NETSTAT 1
  47. goto end
  48.  
  49. :continue
  50. POSTLINK CALLER.CFG /CONTINUE
  51. goto end
  52.  
  53. :END
  54. -------------------
  55.  
  56. That's about it. Type GOODRUN at the command line for usage and example.
  57. This is a quickie, so NO elaborate docs, NO guarantees, NO money...<G> Feel
  58. free to make use of this as you see fit. I'm sure it could be used in more
  59. ways than this, if so, help yourself.
  60.  
  61. POSTLINK relay software Copyright (C) by Kip Compton
  62.  
  63. Question? Call Crimson Cross BBS 618-253-3608 USR DS 14.4
  64.  
  65.